package com.kalix.training.message.entities;

import com.kalix.framework.core.api.persistence.PersistentEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 留言实体类
 */
@Entity
@Table(name = "mooc_message")
public class MessageBean extends PersistentEntity {
    private long uid; // 用户
    private long cid; // 课程id
    @Column(name = "content", columnDefinition = "text")
    private String content;  // 评论内容
    private long score;    // 评分

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    public long getCid() {
        return cid;
    }

    public void setCid(long cid) {
        this.cid = cid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getScore() {
        return score;
    }

    public void setScore(long score) {
        this.score = score;
    }
}
